package com.boot.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.IdentityDialect;
import tk.mybatis.mapper.code.Style;
import util.FD;

@Entity
@Table(name = "t_indeximage")
@NameStyle(Style.normal)
public class IndexImage {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, insertable = false)
	@KeySql(dialect = IdentityDialect.SQLSERVER, useGeneratedKeys = true)
	private Integer	id;
	@FD("标题")
	private String	title;
	@FD("链接")
	private String	url;
	@FD("图片")
	private String	imgFile; 

	public Integer getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public String getUrl() {
		return url;
	}

	public String getImgFile() {
		return imgFile;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setImgFile(String imgFile) {
		this.imgFile = imgFile;
	}

}
